
package com.fx.apartment.modules.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fx.apartment.common.base.BaseEntity;

import java.util.Date;

import com.fx.apartment.common.tool.utils.DateUtil;
import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 活动设置实体类
 *
 * @author QinXueFeng
 * @since 2021-04-19
 */
@Data
@TableName("ctn_activity")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Activity对象", description = "活动设置")
public class Activity extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 标题
	*/
		@ApiModelProperty(value = "标题")
		private String title;
	/**
	* 封面地址
	*/
		@ApiModelProperty(value = "封面地址")
		private String resourcesUrl;
	/**
	* 开始时间
	*/
		@ApiModelProperty(value = "开始时间")
		@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
		@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date startTime;
	/**
	* 结束时间
	*/
		@ApiModelProperty(value = "结束时间")
		@DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
		@JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
		private Date endTime;
	/**
	* 单人最大投票数
	*/
		@ApiModelProperty(value = "单人最大投票数")
		private Integer votesCount;
	/**
	* 浏览数
	*/
		@ApiModelProperty(value = "浏览数")
		private Integer browseNum;
	/**
	* 规则说明
	*/
		@ApiModelProperty(value = "规则说明")
		private String ruleNote;


}
